import request from '@/utils/request'

// 查询教学计划列表
export function listEduPlan(query) {
  return request({
    url: '/education/eduPlan/list',
    method: 'get',
    params: query
  })
}

// 查询教学计划详细
export function getEduPlan(id) {
  return request({
    url: '/education/eduPlan/' + id,
    method: 'get'
  })
}

// 新增教学计划
export function addEduPlan(data) {
  return request({
    url: '/education/eduPlan',
    method: 'post',
    data: data
  })
}

// 修改教学计划
export function updateEduPlan(data) {
  return request({
    url: '/education/eduPlan',
    method: 'put',
    data: data
  })
}

// 删除教学计划
export function delEduPlan(id) {
  return request({
    url: '/education/eduPlan/' + id,
    method: 'delete'
  })
}

// 导出教学计划
export function exportEduPlan(query) {
  return request({
    url: '/education/eduPlan/export',
    method: 'get',
    params: query
  })
}